
package com.amazonaws.sdb.doc._2009_04_15;

/**
 * Please modify this class to meet your needs
 * This class is not complete
 */

import java.io.File;
import java.net.MalformedURLException;
import java.net.URL;
import javax.xml.namespace.QName;
import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebResult;
import javax.jws.WebService;
import javax.jws.soap.SOAPBinding;
import javax.jws.soap.SOAPBinding.ParameterStyle;
import javax.xml.bind.annotation.XmlSeeAlso;

/**
 * This class was generated by Apache CXF 2.2.1
 * Sun May 31 15:48:02 EDT 2009
 * Generated source version: 2.2.1
 * 
 */

public final class AmazonSDBPortType_AmazonSDBPortType_Client {

    private static final QName SERVICE_NAME = new QName("http://sdb.amazonaws.com/doc/2009-04-15/", "AmazonSimpleDB");

    private AmazonSDBPortType_AmazonSDBPortType_Client() {
    }

    public static void main(String args[]) throws Exception {
        URL wsdlURL = AmazonSimpleDB.WSDL_LOCATION;
        if (args.length > 0) { 
            File wsdlFile = new File(args[0]);
            try {
                if (wsdlFile.exists()) {
                    wsdlURL = wsdlFile.toURI().toURL();
                } else {
                    wsdlURL = new URL(args[0]);
                }
            } catch (MalformedURLException e) {
                e.printStackTrace();
            }
        }
      
        AmazonSimpleDB ss = new AmazonSimpleDB(wsdlURL, SERVICE_NAME);
        AmazonSDBPortType port = ss.getAmazonSDBPortType();  
        
        {
        System.out.println("Invoking createDomain...");
        com.amazonaws.sdb.doc._2009_04_15.CreateDomain _createDomain_body = null;
        com.amazonaws.sdb.doc._2009_04_15.CreateDomainResponse _createDomain__return = port.createDomain(_createDomain_body);
        System.out.println("createDomain.result=" + _createDomain__return);


        }
        {
        System.out.println("Invoking listDomains...");
        com.amazonaws.sdb.doc._2009_04_15.ListDomains _listDomains_body = null;
        com.amazonaws.sdb.doc._2009_04_15.ListDomainsResponse _listDomains__return = port.listDomains(_listDomains_body);
        System.out.println("listDomains.result=" + _listDomains__return);


        }
        {
        System.out.println("Invoking deleteDomain...");
        com.amazonaws.sdb.doc._2009_04_15.DeleteDomain _deleteDomain_body = null;
        com.amazonaws.sdb.doc._2009_04_15.DeleteDomainResponse _deleteDomain__return = port.deleteDomain(_deleteDomain_body);
        System.out.println("deleteDomain.result=" + _deleteDomain__return);


        }
        {
        System.out.println("Invoking domainMetadata...");
        com.amazonaws.sdb.doc._2009_04_15.DomainMetadata _domainMetadata_body = null;
        com.amazonaws.sdb.doc._2009_04_15.DomainMetadataResponse _domainMetadata__return = port.domainMetadata(_domainMetadata_body);
        System.out.println("domainMetadata.result=" + _domainMetadata__return);


        }
        {
        System.out.println("Invoking putAttributes...");
        com.amazonaws.sdb.doc._2009_04_15.PutAttributes _putAttributes_body = null;
        com.amazonaws.sdb.doc._2009_04_15.PutAttributesResponse _putAttributes__return = port.putAttributes(_putAttributes_body);
        System.out.println("putAttributes.result=" + _putAttributes__return);


        }
        {
        System.out.println("Invoking deleteAttributes...");
        com.amazonaws.sdb.doc._2009_04_15.DeleteAttributes _deleteAttributes_body = null;
        com.amazonaws.sdb.doc._2009_04_15.DeleteAttributesResponse _deleteAttributes__return = port.deleteAttributes(_deleteAttributes_body);
        System.out.println("deleteAttributes.result=" + _deleteAttributes__return);


        }
        {
        System.out.println("Invoking select...");
        com.amazonaws.sdb.doc._2009_04_15.Select _select_body = null;
        com.amazonaws.sdb.doc._2009_04_15.SelectResponse _select__return = port.select(_select_body);
        System.out.println("select.result=" + _select__return);


        }
        {
        System.out.println("Invoking batchPutAttributes...");
        com.amazonaws.sdb.doc._2009_04_15.BatchPutAttributes _batchPutAttributes_body = null;
        com.amazonaws.sdb.doc._2009_04_15.BatchPutAttributesResponse _batchPutAttributes__return = port.batchPutAttributes(_batchPutAttributes_body);
        System.out.println("batchPutAttributes.result=" + _batchPutAttributes__return);


        }
        {
        System.out.println("Invoking getAttributes...");
        com.amazonaws.sdb.doc._2009_04_15.GetAttributes _getAttributes_body = null;
        com.amazonaws.sdb.doc._2009_04_15.GetAttributesResponse _getAttributes__return = port.getAttributes(_getAttributes_body);
        System.out.println("getAttributes.result=" + _getAttributes__return);


        }

        System.exit(0);
    }

}
